package com.zs.members.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 张硕
 * @since 2021-07-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_integration_history")
@ApiModel(value = "TbIntegrationHistory对象", description = "")
public class Points extends Model<Points> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "积分记录ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    //会员ID
    @ApiModelProperty(value = "会员ID")
    @TableField("member_id")
    private Long memberId;

    //创建记录时间
    @ApiModelProperty(value = "创建记录时间")
    @TableField("create_time")
    private String createTime;

    //积分变化类型1加  2 减
    @ApiModelProperty(value = "积分变化类型1加  2 减")
    @TableField("change_type")
    private Integer changeType;

    //积分改变数量
    @ApiModelProperty(value = "积分改变数量")
    @TableField("change_count")
    private Integer changeCount;

    //操作人员
    @ApiModelProperty(value = "操作人员")
    @TableField("operate_man")
    private String operateMan;

    //操作备注
    @ApiModelProperty(value = "操作备注")
    @TableField("operate_note")
    private String operateNote;

    //积分来源：0->自驾服务消费金额；1->参与官方活动；2->官网或者app顶专车或者个人消费后（路桥费，停车费，税费不计入）
    @ApiModelProperty(value = "积分来源：0->自驾服务消费金额；1->参与官方活动；2->官网或者app顶专车或者个人消费后（路桥费，停车费，税费不计入）")
    @TableField("source_type")
    private Integer sourceType;

    @ApiModelProperty(value = "客户名字")
    @TableField(exist= false)
    private  String username;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
